package TopSky.IOT.JUnit;

import java.sql.Timestamp;

import TopSky.IOT.DAO.ControlDeviceDAO;
import TopSky.IOT.Models.controldevice;

import org.junit.Test;

public class DAO {

	@Test
	public void ControlDeviceDAO() {
		controldevice model=new controldevice();
		ControlDeviceDAO dao=new ControlDeviceDAO();
		model.setLabsID(1);
		model.setName("kongzhi驱动02");
		model.setIntime(new Timestamp(System.currentTimeMillis()));
		model.setPicture("/kkkkk/1.jpg");
		model.setInfo("homeDevice");

		//Date date = new Date();     
		//Timestamp nousedate = new Timestamp(date.getTime());    
		dao.InsertOne(model);
	}
}
